import request from '@/utils/request'

// StoreHouse 新建仓库
export function psiStorehouseSave(data) {
  return request({
    url: 'PsiStoreHouse/saveOrUpdate',
    method: 'post',
    data: data,
    headers: {
      'Content-Type': 'application/json;charset=UTF-8'
    }
  })
}

export function psiStorehouseIndex(data) {
  return request({
    url: 'PsiStoreHouse/queryPageList',
    method: 'post',
    data: data,
    headers: {
      'Content-Type': 'application/json;charset=UTF-8'
    }
  })
}

// psi仓库 详情
export function psiStorehouseRead(data) {
  return request({
    url: 'PsiStoreHouse/queryById',
    method: 'post',
    data: data
  })
}

// 在库查询获取表头
export function psiSearchhouseRead(data) {
  return request({
    url: 'PsiStoreHouse/queryStorehouseListHead',
    method: 'post',
    data: data
  })
}
// 在库查询获取数据
export function psiSearchhouseList(data) {
  return request({
    url: 'PsiStoreHouse/queryStorehouse',
    method: 'post',
    data: data
  })
}
// 在库查询导出
export function psiStorehouseReportExport(data) {
  return request({
    url: 'PsiStoreHouse/storehouseExport',
    method: 'post',
    data: data,
    responseType: 'blob'
  })
}
